package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 众筹单管理对象 project
 * 
 * @author ruoyi
 * @date 2024-11-27
 */
public class Project extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 众筹项目ID */
    private Long projectId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long goodId;

    /** 众筹项目名字 */
    @Excel(name = "众筹项目名字")
    private String projectName;

    /** 项目描述 */
    @Excel(name = "项目描述")
    private String description;

    /** 目标数量 */
    @Excel(name = "目标数量")
    private Long targetQuantity;

    /** 当前数量 */
    @Excel(name = "当前数量")
    private Long currentQuantity;

    /** 众筹结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "众筹结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 众筹开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "众筹开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 众筹发起人ID */
    @Excel(name = "众筹发起人ID")
    private Long initiatorId;

    /** 众筹状态 */
    @Excel(name = "众筹状态")
    private String status;

    /** 定制商品价格 */
    @Excel(name = "定制商品价格")
    private BigDecimal price;

    /** 厂商id */
    @Excel(name = "厂商id")
    private Long factoryId;

    /** 众筹封面 */
    @Excel(name = "众筹封面")
    private String image;

    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }
    public void setGoodId(Long goodId) 
    {
        this.goodId = goodId;
    }

    public Long getGoodId() 
    {
        return goodId;
    }
    public void setProjectName(String projectName) 
    {
        this.projectName = projectName;
    }

    public String getProjectName() 
    {
        return projectName;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setTargetQuantity(Long targetQuantity) 
    {
        this.targetQuantity = targetQuantity;
    }

    public Long getTargetQuantity() 
    {
        return targetQuantity;
    }
    public void setCurrentQuantity(Long currentQuantity) 
    {
        this.currentQuantity = currentQuantity;
    }

    public Long getCurrentQuantity() 
    {
        return currentQuantity;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setInitiatorId(Long initiatorId) 
    {
        this.initiatorId = initiatorId;
    }

    public Long getInitiatorId() 
    {
        return initiatorId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setFactoryId(Long factoryId) 
    {
        this.factoryId = factoryId;
    }

    public Long getFactoryId() 
    {
        return factoryId;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("projectId", getProjectId())
            .append("goodId", getGoodId())
            .append("projectName", getProjectName())
            .append("description", getDescription())
            .append("targetQuantity", getTargetQuantity())
            .append("currentQuantity", getCurrentQuantity())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("initiatorId", getInitiatorId())
            .append("status", getStatus())
            .append("price", getPrice())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("factoryId", getFactoryId())
            .append("image", getImage())
            .toString();
    }
}
